﻿using System;
using System.Collections.Generic;
using System.IO;

namespace SpellChecker
{
    internal class Dateileser
    {
        public static Dictionary<string, bool>Load(string DictionaryPath)
        {
            var Words = File.ReadAllLines(DictionaryPath);
            var Wortverzeichnis = new Dictionary<string, bool>();

            foreach (var Word in Words)
            {
                Wortverzeichnis.Add(Word, true);
            }

            return Wortverzeichnis;
        }
    }
}